#!/bin/sh

data_date=$1

#1.添加分区
ADD_PARTITION_SQL="
ALTER TABLE jtp_tmp.ods_t_order ADD IF NOT EXISTS PARTITION (dt = '${data_date}');
"

#2.执行语句
/opt/module/spark/bin/beeline -u jdbc:hive2://node101:10001 -n bwie -e "${ADD_PARTITION_SQL}"
